import request from '@/utils/request'

// 查询活动列表
export function listActivityList(query) {
  return request({
    url: '/education/activityList/list',
    method: 'get',
    params: query
  })
}

// 查询活动详细
export function getActivityDetail(activityId) {
  return request({
    url: '/education/activityList/' + activityId,
    method: 'get'
  })
}

// 报名活动
export function enrollActivity(data) {
  return request({
    url: '/education/activityList/enroll',
    method: 'post',
    data: data
  })
}

// 查询活动分类
export function listActivityCategories() {
  return request({
    url: '/education/category/list',
    method: 'get'
  })
} 